json.array!(@payments) do |payment|
  json.extract! payment, :id, :invoice_id, :amount, :change, :payment_method_id, :card_number, :card_provider_id, :card_transaction_ref, :created_at, :updated_at, :created_by, :updated_by
  json.url payment_url(payment, format: :json)
end
